<div class="">
	<div class="alert alert-info" id="notification_area">
		<a class="close" data-dismiss="alert">×</a>
		  <?php foreach ($notifications as $n):?>
		  	<div>
		  		<?php echo $n['message']?>
		  		<?php if ($n['view_link']):?>
		  		<a
				href="<?php echo base_url('index.php/notification/view/'.$n['nid'])?>">查看详情</a>
		  		<?php endif;?>
		  		<?php if ($n['action_message']):?>
		  		<a href="javascript:void(0)"
				onclick="notification_action(this,<?php echo $n['nid']?>)"><?php echo $n['action_message']?></a>
		  		<?php endif;?>
		  		<?php if ($n['cancel_message']):?>
		  		<a href="javascript:void(0)"
				onclick="notification_cancel(this,<?php echo $n['nid']?>)"><?php echo $n['cancel_message']?></a>
		  		<?php endif;?>
		  	</div>
		  <?php endforeach;?>
	</div>
</div>

